const projectService = require('../service/projectService');

module.exports = {
    fetchProjectList: async (ctx) => {
        const list = await projectService.findAllProject();
        ctx.body = list;
    },
    saveProject: async (ctx) => {
        const project = await projectService.saveProject(ctx.reqParams.body);
        ctx.body = project;
        ctx.state.message = "保存成功";
    } 
}